package ch04Spring.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class demo13 {
    public void printerTest(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        Printer printer=(Printer) context.getBean("printer");
        String content="轻灵..轻灵的鼠标一点，神奇的世界出现，双手..把双手放在胸前"+
                "手放在胸前，敲打出美丽的画卷。轻灵。。轻灵的鼠标一点，神奇的世界出现。双手。。把双手";
        printer.print(content);
    }
}
